package com.guanzhi.factory;

import com.guanzhi.bean.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * Spring6
 * <p> Package: com.guanzhi.factory </p>
 * <p> File: MyFactoryBean.java </p>
 * <p> Description:  (FactoryBean 实现及使用)</p>
 * <p> Date: 2024/8/18 2:47</p>
 * @author LiKai
 * @email <a href="mailto:Likai55634@aliyun.com">LiKai</a>（邮箱）
 * @date 2024/8/18 2:47
 * @since jdk1.8（jdk版本）
 * @version 1.0 （代码版本）
 */
public class MyFactoryBean implements FactoryBean<User>{
    @Override
    public User getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
